package com.example.nbshangpping.History;

import java.io.Serializable;
import java.util.List;

public class HistoryBean implements Serializable {
    /**
     * code : 200
     * message : 查询成功
     * data : [{"id":3,"commodityId":63,"count":1,"userId":85,"commodityName":"水浒传","commodityInfo":"四大名著全套原著正版 无删减中小学初高中生青少年正版","commodityPhoto":"/image/commodity/shuihu.png","univalence":50,"totalprices":50}]
     */

    private int code;
    private String message;
    private List<DataBean> data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean implements Serializable {
        /**
         * id : 3
         * commodityId : 63
         * count : 1
         * userId : 85
         * commodityName : 水浒传
         * commodityInfo : 四大名著全套原著正版 无删减中小学初高中生青少年正版
         * commodityPhoto : /image/commodity/shuihu.png
         * univalence : 50.0
         * totalprices : 50.0
         */

        private int id;
        private int commodityId;
        private int count;
        private int userId;
        private String commodityName;
        private String commodityInfo;
        private String commodityPhoto;
        private double univalence;
        private double totalprices;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public int getCommodityId() {
            return commodityId;
        }

        public void setCommodityId(int commodityId) {
            this.commodityId = commodityId;
        }

        public int getCount() {
            return count;
        }

        public void setCount(int count) {
            this.count = count;
        }

        public int getUserId() {
            return userId;
        }

        public void setUserId(int userId) {
            this.userId = userId;
        }

        public String getCommodityName() {
            return commodityName;
        }

        public void setCommodityName(String commodityName) { this.commodityName = commodityName; }

        public String getCommodityInfo() { return commodityInfo; }

        public void setCommodityInfo(String commodityInfo) {
            this.commodityInfo = commodityInfo;
        }

        public String getCommodityPhoto() {
            return commodityPhoto;
        }

        public void setCommodityPhoto(String commodityPhoto) {
            this.commodityPhoto = commodityPhoto;
        }

        public double getUnivalence() {
            return univalence;
        }

        public void setUnivalence(double univalence) {
            this.univalence = univalence;
        }

        public double getTotalprices() {
            return totalprices;
        }

        public void setTotalprices(double totalprices) {
            this.totalprices = totalprices;
        }
    }
}
